
import axios from "axios"
export let logininfo = (item)=>{
    return {
        type:"logininfo",
        payload:item
    }
}
export let getlist = ()=>{
    return (dispacth)=>{
        axios.get("/list").then(res=>{
            dispacth({
                type:"getlist",
                payload:res.data
            })
        })
    }
}
export let collection = (index,ind)=>{
    return {
        type:"collection",
        payload:index,
        ind
    }
    
}